package com.ijuit.business;


/**
 * 
 * @author 罗龙
 *
 * @param <T>
 */
public interface BusinessService<T>{
	
	/**
	 * 新增
	 * @param t
	 * @throws Exception
	 */
	public void add(T t) throws Exception;
	
	/**
	 * 修改
	 * @param t
	 * @throws Exception
	 */
	public void edit(T t) throws Exception;
	
	/**
	 * 根据主键查看某条记录
	 * @param t
	 * @throws Exception
	 */
	public T view(int id) throws Exception;
	
	/**
	 * 根据主键删除某条记录
	 * @param id
	 * @throws Exception
	 */
	public void deleteById(int id) throws Exception;
	
	/**
	 * 分页查询记录
	 * @param curPage
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	//public Page<T> select(Search<?> search, Pager pager) throws Exception;
}
